package com.touka.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 套餐
 */
@Data
public class Setmeal implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  private Long id;


  //分类id
  private Long categoryId;
  // 分类名称
  @TableField(select = false, exist = false)
  private String categoryName;

  //套餐名称
  private String name;


  //套餐价格
  private BigDecimal price;


  //状态 0:停用 1:启用
  private Integer status;


  //编码
  private String code;


  //描述信息
  private String description;


  //图片
  private String image;

  // 套餐包含的菜品
  @TableField(select = false, exist = false)
  private List<SetmealDish> setmealDishes;


  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;


  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;


  @TableField(fill = FieldFill.INSERT)
  private Long createUser;


  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Long updateUser;


  //是否删除
  @TableLogic
  private Integer isDeleted;
}
